package kr.co.icebird.spring3.config.util;

import org.jfree.chart.JFreeChart;

public abstract class Chart {

	public enum ChartType {
		PAI, BAR, LINE
	}

	JFreeChart chart;

	String title;
	String xLabel;
	String yLabel;

	byte[] imageByte;
	private String savetoFile;

	public Chart(String title, String xLabel, String yLabel) {
		this.title = title;
		this.xLabel = xLabel;
		this.yLabel = yLabel;
	}

	public abstract void createChart();
	public abstract void addValue(String catagory, String label, Number value);
	public abstract void addValue(String catagory, String label, double value);
	
	public String getSavetoFile() {
		return savetoFile;
	}
}
